package com.ws.shop.entity;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Article extends BaseEntity{
	private int id;
	private int cid;
	private String title;
	private String link;
	private int order;
	private String keywords;
	private String description;
	private Date edittime;
	private String body;
	private int state;
	private String cname;
	
	public final static Map<String,String> STATE_DESCS = new HashMap<String,String>();
	
	static{
		STATE_DESCS.put("0", "未发布");
		STATE_DESCS.put("1", "已发布");
	}
	
	public Article(){}
	
	public Article(int id, int cid, String title, String link, int order,
			String keywords, String description, Date edittime, String body,
			int state) {
		this.id = id;
		this.cid = cid;
		this.title = title;
		this.link = link;
		this.order = order;
		this.keywords = keywords;
		this.description = description;
		this.edittime = edittime;
		this.body = body;
		this.state = state;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getEdittime() {
		return edittime;
	}

	public void setEdittime(Date edittime) {
		this.edittime = edittime;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
}